﻿<%@ Page Language="C#" MasterPageFile="~/Shared/EOS.Master" AutoEventWireup="true" 
    CodeBehind="TongHopKhachHangSuDungDongHo.aspx.cs" Inherits="EOSCRM.Web.Forms.DongHo.BaoCao.TongHopKhachHangSuDungDongHo" %>
<%@ Import Namespace="EOSCRM.Web.Common" %>
<%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
 
<asp:Content ID="head" ContentPlaceHolderID="headCPH" runat="server">
    <script type="text/javascript">
        function CheckFormReport() {
            openWaitingDialog();
            unblockWaitingDialog();

            __doPostBack('<%= CommonFunc.UniqueIDWithDollars(btnBaoCao) %>', '');

            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <asp:UpdatePanel ID="upnlInfor" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <table class="crmtable">
                    <tbody>
                        <tr>
                            <td class="crmcell right">
                                Từ ngày
                            </td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtTuNgay" tag="datevn" runat="server" Width="75px" />
                                </div>
                                
                                <div class="left">
                                    <div class="right">
                                        Đến ngày</div>
                                </div>
                                <div class="left">
                                    <asp:TextBox ID="txtDenNgay" runat="server" Width="75px" Height="16px" tag="datevn"/>
                                </div>
                                
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Khu vực</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:DropDownList ID="ddlKHUVUC" runat="server" />
                                </div>
                            </td>
                        </tr>
                        <tr>  
                            <td class="crmcell right">Người lập</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtNguoiLap" runat="server" Width="150px" />
                                </div>
                            </td>
                        </tr>               
                        <tr>                    
                            <td class="crmcell right"></td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:Button ID="btnBaoCao" runat="server" OnClick="btnBaoCao_Click" CssClass="report" OnClientClick="return CheckFormReport();" />
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <asp:UpdatePanel ID="upnlReport" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer" id="divCR" runat="server" visible="false">
                <CR:CrystalReportViewer ID="rpViewer" runat="server" PrintMode="ActiveX" AutoDataBind="true" DisplayGroupTree="False" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
